extends Talent
var data = {}
func init():
	name = "亚比球"
func _connect():
	sys.main.connect("onCharaDel",self,"run0")

func get_info():
	return "打败敌方亚比时，有[1%]概率抓到一只该亚比，不限等级"

func run0(cha):
	if cha.team == 1:return
	if sys.rndPer(1):
		giveChara(cha.id)

func giveChara(x):
	var cha = sys.main.newChara(x,1)
	sys.main.player.addCha(cha)
